﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test.DataAccess.POCO;

namespace Test.DataAccess.EF
{
    public class TestEFContext:DbContext
    {
        public TestEFContext(string nameOrConnectionString)
            : base(nameOrConnectionString)
        {

        }

        #region 实体
        public virtual DbSet<Admin> Admins { get; set; } // 管理员
        public virtual DbSet<Role> Roles { get; set; } // 角色
        public virtual DbSet<Permission> Permissions { get; set; } // 权限
        public virtual DbSet<Configuration> Configurations { get; set; } // 配置
        
        #endregion

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {

        }
    }
}
